package com.sorcix.sirc;

/**
 * Notified when receiving unknown lines. This allows acting on
 * incoming IRC events not supported by sIRC. Note that sIRC only
 * allows a single instance of {@code AdvancedListener}, which means
 * that {@link SIRCService}s should not use it.
 * 
 * @author Sorcix
 */
public interface AdvancedListener {
	
	/**
	 * Received an unknown IRC event.
	 * 
	 * @param irc The {@link IrcConnection} receiving this event.
	 * @param line The incoming line.
	 */
	void onUnknown(IrcConnection irc, IrcDecoder line);
	
	/**
	 * Received an unknown numeric server reply.
	 * 
	 * @param irc The {@link IrcConnection} receiving this event.
	 * @param line The incoming line.
	 */
	void onUnknownReply(IrcConnection irc, IrcDecoder line);
}